import fetch from '@/utils/fetch';

// 获取列表
export const getList = (data) => fetch('/table/list', data || {}, 'GET');

// 获取详情
export const getArticleDetail = (data) => fetch('/table/detail', data || {}, 'GET');

// 新增
export const createArticle = (data) => fetch('/table/list', data || {}, 'GET');

// 修改
export const updateArticle = (data) => fetch('/table/list', data || {}, 'GET');

// 删除
export const deleteArticle = (data) => fetch('/table/delete_item', data || {}, 'POST');

// 导出数据-需要配合实际可导出接口使用
export const exportExcel = (data) => fetch('/table/list', data || {}, 'GET', 'blob');
